Crate libduckdb_sys

source ·

Structs§

  • ! The appender enables fast data loading into DuckDB. ! Must be destroyed with duckdb_appender_destroy.
  • ! Holds an arrow query result. Must be destroyed with duckdb_destroy_arrow.
  • ! Holds an arrow array. Remember to release the respective ArrowArray object.
  • ! Holds an arrow schema. Remember to release the respective ArrowSchema object.
  • ! Holds an arrow array stream. Must be destroyed with duckdb_destroy_arrow_stream.
  • ! Can be used to provide start-up options for the DuckDB instance. ! Must be destroyed with duckdb_destroy_config.
  • ! A connection to a duckdb database. Must be closed with duckdb_disconnect.
  • ! Contains a data chunk from a duckdb_result. ! Must be destroyed with duckdb_destroy_data_chunk.
  • ! A database object. Should be closed with duckdb_close.
  • ! Extracted statements. Must be destroyed with duckdb_destroy_extracted.
  • ! Holds an internal logical type. ! Must be destroyed with duckdb_destroy_logical_type.
  • ! The pending result represents an intermediate structure for a query that is not yet fully executed. ! Must be destroyed with duckdb_destroy_pending.
  • ! A prepared statement is a parameterized query that allows you to bind parameters to it. ! Must be destroyed with duckdb_destroy_prepare.
  • ! Holds a DuckDB value, which wraps a type. ! Must be destroyed with duckdb_destroy_value.
  • ! A vector to a specified column in a data chunk. Lives as long as the ! data chunk lives, i.e., must not be destroyed.
  • ! BLOBs are composed of a byte pointer and a size. You must free blob.data ! with duckdb_free.
  • ! A column consists of a pointer to its internal data. Don’t operate on this type directly. ! Instead, use functions such as duckdb_column_data, duckdb_nullmask_data, ! duckdb_column_type, and duckdb_column_name, which take the result and the column index ! as their parameters
  • ! Days are stored as days since 1970-01-01 ! Use the duckdb_from_date/duckdb_to_date function to extract individual information
  • ! Decimals are composed of a width and a scale, and are stored in a hugeint
  • ! Hugeints are composed of a (lower, upper) component ! The value of the hugeint is upper * 2^64 + lower ! For easy usage, the functions duckdb_hugeint_to_double/duckdb_double_to_hugeint are recommended
  • ! The internal representation of a list metadata entry contains the list’s offset in ! the child vector, and its length. The parent vector holds these metadata entries, ! whereas the child vector holds the data
  • ! A type holding information about the query execution progress
  • ! A query result consists of a pointer to its internal data. ! Must be freed with ‘duckdb_destroy_result’.
  • ! Strings are composed of a char pointer and a size. You must free string.data ! with duckdb_free.
  • ! The internal representation of a VARCHAR (string_t). If the VARCHAR does not ! exceed 12 characters, then we inline it. Otherwise, we inline a prefix for faster ! string comparisons and store a pointer to the remaining characters. This is a non- ! owning structure, i.e., it does not have to be freed.
  • ! Time is stored as microseconds since 00:00:00 ! Use the duckdb_from_time/duckdb_to_time function to extract individual information
  • ! TIME_TZ is stored as 40 bits for int64_t micros, and 24 bits for int32_t offset
  • ! Timestamps are stored as microseconds since 1970-01-01 ! Use the duckdb_from_timestamp/duckdb_to_timestamp function to extract individual information

Enums§

Constants§

Functions§

Type Aliases§

Unions§